package application.common.render;

import application.common.model.FaultBox;
import javafx.beans.property.SimpleStringProperty;

public final class FaultBoxProperty {

	private final SimpleStringProperty id = new SimpleStringProperty();
	private final SimpleStringProperty cabinetName = new SimpleStringProperty();
	private final SimpleStringProperty boardName = new SimpleStringProperty();
	private final SimpleStringProperty boxNo = new SimpleStringProperty();
	
	public FaultBoxProperty(FaultBox faultBox) {
		id.set(faultBox.getId());
		cabinetName.set(faultBox.getStr("cabinetName"));
		boardName.set(faultBox.getStr("boardName"));
		boxNo.set(faultBox.getBoxNo()+"");
	}

	public String getId() {
		return id.get();
	}

	public String getCabinetName() {
		return cabinetName.get();
	}

	public String getBoardName() {
		return boardName.get();
	}

	public String getBoxNo() {
		return boxNo.get();
	}


}
